package com.system.common.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.system.common.pojo.SysUser;
import com.system.common.pojo.SysUserExample;

public interface SysUserMapper {
    int countByExample(SysUserExample example);

    int deleteByExample(SysUserExample example);

    int deleteByPrimaryKey(String userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    List<SysUser> selectByExample(SysUserExample example);

    SysUser selectByPrimaryKey(String userId);

    int updateByExampleSelective(@Param("record") SysUser record, @Param("example") SysUserExample example);

    int updateByExample(@Param("record") SysUser record, @Param("example") SysUserExample example);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
    
    List<SysUser> listAll(Map<?, ?> map);
    
    List<SysUser> queryUserIds(String ids);
    
    SysUser checkName(String account);
    
    List<Map<String, Object>> nouserPower();
    
    List<Map<String, Object>> yesUserPower(String roleId);
    
    int change(Map<String, Object> map);
    
}